package com.navinfo.opentsp.platform.computing.dto;

import com.navinfo.opentsp.platform.computing.util.EntityConvert;
import com.navinfo.opentsp.platform.location.protocol.common.LCLocationData;

public class GasBoxDto {
    private int manageSignal;
    private int alarm;
    private int volume1;
    private int level1;
    private int volume2;
    private int level2;
    private int volume3;
    private int level3;
    private int volume4;
    private int level4;

    public int getManageSignal() { return manageSignal; }
    public void setManageSignal(int manageSignal) { this.manageSignal = manageSignal; }
    public int getAlarm() { return alarm; }
    public void setAlarm(int alarm) { this.alarm = alarm; }
    public int getVolume1() { return volume1; }
    public void setVolume1(int volume1) { this.volume1 = volume1; }
    public int getLevel1() { return level1; }
    public void setLevel1(int level1) { this.level1 = level1; }
    public int getVolume2() { return volume2; }
    public void setVolume2(int volume2) { this.volume2 = volume2; }
    public int getLevel2() { return level2; }
    public void setLevel2(int level2) { this.level2 = level2; }
    public int getVolume3() { return volume3; }
    public void setVolume3(int volume3) { this.volume3 = volume3; }
    public int getLevel3() { return level3; }
    public void setLevel3(int level3) { this.level3 = level3; }
    public int getVolume4() { return volume4; }
    public void setVolume4(int volume4) { this.volume4 = volume4; }
    public int getLevel4() { return level4; }
    public void setLevel4(int level4) { this.level4 = level4; }

    public static String toString(LCLocationData.GasBox gasBox) {
        return EntityConvert.convert(
                gasBox.getManageSignal(),
                gasBox.getAlarm(),
                gasBox.getVolume1(),
                gasBox.getLevel1(),
                gasBox.getVolume2(),
                gasBox.getLevel2(),
                gasBox.getVolume3(),
                gasBox.getLevel3(),
                gasBox.getVolume4(),
                gasBox.getLevel4()
        );
    }

    public static GasBoxDto fromString(String s) {
        // not used
        throw new UnsupportedOperationException();
    }
}
